//
//  BeAppJsonAdapto.h
//  MClient
//
//  Created by  史正烨 on 09-9-28.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MServerDAOProtocol.h"


@interface MServerJsonDAO : NSObject <MServerDAOProtocol> {
	NSString *methodName;
	NSMutableDictionary *inParameters;
	id<MCServer2ViewDelegate> delegate;
	NSString *returnCode;
	NSString *returnMessage;
	id returnValue;
	NSMutableDictionary *otherParameters;
	NSString *cacheType;
	NSURLConnection* httpConnection;
	NSMutableData*   responseData;
}

//@property (nonatomic,retain) NSString *returnCode;
//@property (nonatomic,retain) NSString *returnMessage;
//@property (nonatomic,retain) id returnValue;
@property (nonatomic,retain) NSString *cacheType;
@property (nonatomic,retain) NSURLConnection *httpConnection;
@property (nonatomic,retain) NSMutableData *responseData;

- (void)initServerUrl;
+ (NSArray *)getCookies;
+ (NSString *)getServerServletUrl;
+ (void)setServerServletUrl:(NSString *)url;
- (void)setAuthValue:(NSMutableDictionary *)params 
				 opt:(NSString *)opt
			 request:(NSMutableURLRequest *)request;

@end
